﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Cart_Item
/// </summary>
/// 
namespace Bestlife.ERP.Entities
{
public class Cart_Item
{
        private string id;

        #region CartItem Get:Set

        private string produt_ID;

        public string Produt_ID
        {
            get { return produt_ID; }
            set { produt_ID = value; }
        }

        private string product_Code;

        public string Product_Code
        {
            get { return product_Code; }
            set { product_Code = value; }
        }

        private string product_Name;

        public string Product_Name
        {
            get { return product_Name; }
            set { product_Name = value; }
        }
        private double product_Price;

        public double Product_Price
        {
            get { return product_Price; }
            set { product_Price = value; }
        }

        private int quantity;

        public int Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

        private float point_Value;

        public float Point_Value
        {
            get { return point_Value; }
            set { point_Value = value; }
        }

        private float business_value;

        public float Business_value
        {
            get { return business_value; }
            set { business_value = value; }
        }

        private string url;

        public string Url
        {
            get { return url; }
            set { url = value; }
        }

        private double tot_Price;

        public double Tot_Price
        {
            get { return product_Price * quantity; }
        }

        private double tot_Point_Value;


        public double Tot_Point_Value
        {
            get { return point_Value * quantity; }

        }

        private double tot_Business_Value;

        public double Tot_Business_Value
        {
            get {

                double val = double.Parse(business_value.ToString()) * quantity;
                return val; 
            
            }

        }


        public Cart_Item(string id, string code)
        {
            // TODO: Complete member initialization
            this.id = id;
            this.Product_Code = code;
        }


        public Cart_Item()
        {
            //'Default 
        }
        #endregion

}
}